package com.small.xx.ai.file.dto;

/**
 * 文件上传请求DTO
 * 
 * @author xx-ai
 * @version 1.0.0
 */
public class FileUploadRequest {
    
    /**
     * 目标目录路径
     */
    private String targetPath;
    
    /**
     * 是否覆盖同名文件
     */
    private Boolean overwrite = false;
    
    /**
     * 文件描述
     */
    private String description;
    
    /**
     * 上传者信息
     */
    private String uploader;

    // 构造器
    public FileUploadRequest() {}

    public FileUploadRequest(String targetPath) {
        this.targetPath = targetPath;
    }

    // Getter和Setter方法
    public String getTargetPath() {
        return targetPath;
    }

    public void setTargetPath(String targetPath) {
        this.targetPath = targetPath;
    }

    public Boolean getOverwrite() {
        return overwrite;
    }

    public void setOverwrite(Boolean overwrite) {
        this.overwrite = overwrite;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUploader() {
        return uploader;
    }

    public void setUploader(String uploader) {
        this.uploader = uploader;
    }

    @Override
    public String toString() {
        return "FileUploadRequest{" +
                "targetPath='" + targetPath + '\'' +
                ", overwrite=" + overwrite +
                ", description='" + description + '\'' +
                ", uploader='" + uploader + '\'' +
                '}';
    }
}